home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / kupidon-strike.swf / scripts / frame_231 / PlaceObject2_306_629 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2011-12-21  |  1.1 KB  |  45 lines

  1. onClipEvent(load){
  2.    function rem(flag, obj)
  3.    {
  4.       if(flag == 1)
  5.       {
  6.          _root.level_arrows -= 100;
  7.          _root.hearts_beat = 0;
  8.          this._visible = false;
  9.          this.active = false;
  10.          this.active = false;
  11.          this.gotoAndPlay(2);
  12.          i = 0;
  13.          while(i < _root.stage_objects.length)
  14.          {
  15.             if(_root.stage_objects[i] == this._name)
  16.             {
  17.                _root.todel_objects.push[i];
  18.             }
  19.             i++;
  20.          }
  21.          _root.bullet.vector.x = 0;
  22.          _root.bullet.vector.y = 0;
  23.          _root.gravity = 0;
  24.          _root.bullet.gotoAndPlay(2);
  25.       }
  26.       else if(flag == 2)
  27.       {
  28.          this.active = false;
  29.          this.gotoAndPlay(2);
  30.          _root[obj].speed = 0;
  31.          _root[obj].active = false;
  32.          _root[obj].gotoAndPlay(2);
  33.       }
  34.       _root.boom(_X,_Y,colour);
  35.    }
  36.    move_x = _X;
  37.    move_y = _Y;
  38.    move_direction = 1;
  39.    c_path = move_path;
  40.    colour = "blackk";
  41.    active = true;
  42.    gotoAndStop(colour);
  43.    _root.stage_objects.push(this._name);
  44. }
  45.